<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>详情页</title>
    <link rel="stylesheet" href="/css/category.css">
</head>
<body>
    <header></header>
    <section>
        <div class="container">
            <div id="goodsClassify">

            </div>
            <script type="text/html" id="classifyTemplate">
                <h1>{{ cname }}</h1>

                <ul class="goods_list">
                    {{each list item}}
                    <li>
                        <a href="/html/buy.html?id={{item.id}}">
                            <img src="{{item.image}}" alt="">
                            {{if item.title}}
                            <p>{{item.title.slice(0,10)+'...'}}</p>
                            {{/if}}
                            <p>￥{{item.price}}</p> 
                            {{if item.couponValue}}
                            <span>{{item.couponValue}}</￥>
                            {{/if}}
                        </a>
                    </li>
                    {{/each}}
                </ul>

            </script>
        </div>
    </section>
    <script src="/libs/require/require.min.js" data-main="/js/category"></script>
</body>
</html>